package pcdata;

import org.apache.commons.lang3.RandomStringUtils;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class ProductCategoryGen {

    public static void main(String[] args) throws IOException {

        BufferedWriter bw = new BufferedWriter(new FileWriter("d:/pc.txt"));
        for(int i=1;i<=1000;i++){

            String categoryName = RandomStringUtils.randomAlphabetic(3, 4);

            bw.write(i+","+categoryName);
            bw.newLine();
        }
        bw.close();

    }

}
